package singleton;

/**
 * 饿汉式（静态常量）
 * 优点：写法简单，线程安全，效率高。
 * 缺点：非懒加载。
 * Created by thiswhyme on 2019/03/15.
 */
public class HungryScbSingleton {

    private final static HungryScbSingleton INSTANCE = new HungryScbSingleton();

    private HungryScbSingleton() {

    }

    public static HungryScbSingleton getInstance () {
        return INSTANCE;
    }
}
